import request from "@/utils/request";

// 投诉列表
export function getComplainList(query) {
  return request({
    url: "/admin/feedback/page",
    method: "get",
    params: query,
  });
}

// 修改投诉
export function updateComplain(data) {
  return request({
    url: "/admin/feedback/update",
    method: "post",
    data: data,
  });
}

// 删除投诉
export function deleteComplain(id) {
  return request({
    url: "/admin/feedback/remove",
    method: "post",
    params: { id },
  });
}
